KERNEL_DIR = /lib/modules/6.6.0-38.0.0.45.oe2403.x86_64/build/
PROJECT_DIR = $(shell pwd)

SRC_FILES = ex2.c
OBJ_FILES = ex2.o

obj-m := mod_ex2.o
ccflags-y := $(KERNEL_CFLAGS)
mod_ex2-objs := $(OBJ_FILES)

all:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) modules
clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) clean
